package com.tbvtc.agriculturalcreditchainserver2025.dto.Cart;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Size;

@Data
public class CartUpdataAddressDto {
        @Schema(description = "地址id")
        private Integer addressId;
        @Schema(description = "省份")
        private String province;
        @Schema(description = "市区")
        private String city;
        @Schema(description = "区县")
        private String district;
        @Schema(description = "详细地址")
        private String detailAddress;
        @Schema(description = "收货人姓名")
        private String receiverName;
        @Size(min = 11,max = 11,message = "手机号长度必须为11位")
        @Schema(description = "收货人电话")
        private String receiverPhone;
        @Schema(description = "是否为默认",defaultValue = "0")
        private Integer isDefault;




}
